import numpy as np

# 你的数据，波长和强度分别放两个列表或数组中
wavelengths = np.array([
    760, 760.1, 760.2, 760.3, 760.4, 760.5, 760.6, 760.7, 760.8, 760.9,
    761, 761.1, 761.2, 761.3, 761.4, 761.5, 761.6, 761.7, 761.8, 761.9,
    762, 762.1, 762.2, 762.3, 762.4, 762.5, 762.6, 762.7, 762.8, 762.9,
    763, 763.1, 763.2, 763.3, 763.4, 763.5, 763.6, 763.7, 763.8, 763.9,
    764, 764.1, 764.2, 764.3, 764.4, 764.5, 764.6, 764.7, 764.8, 764.9,
    765, 765.1, 765.2, 765.3, 765.4, 765.5, 765.6, 765.7, 765.8, 765.9,
    766, 766.1, 766.2, 766.3, 766.4, 766.5, 766.6, 766.7, 766.8, 766.9,
    767, 767.1, 767.2, 767.3, 767.4, 767.5, 767.6, 767.7, 767.8, 767.9,
    768, 768.1, 768.2, 768.3, 768.4, 768.5, 768.6, 768.7, 768.8, 768.9,
    769, 769.1, 769.2, 769.3, 769.4, 769.5, 769.6, 769.7, 769.8, 769.9,
    770
])

intensities = np.array([
    8.06E-15, 3.69E-14, 1.63E-13, 6.89E-13, 2.81E-12, 1.10E-11, 4.16E-11, 1.51E-10, 5.28E-10, 1.78E-09,
    5.75E-09, 1.79E-08, 5.37E-08, 1.55E-07, 4.29E-07, 1.15E-06, 2.94E-06, 7.28E-06, 1.73E-05, 3.96E-05,
    8.73E-05, 0.00018488, 0.00037695, 0.00073953, 0.00139605, 0.00253583, 0.00443217, 0.00745399, 0.0120625, 0.01878287,
    0.02814251, 0.04057325, 0.05628503, 0.0751315, 0.0965, 0.11926382, 0.14182938, 0.16229301, 0.17869382, 0.18931951,
    0.19300001, 0.18931953, 0.17869388, 0.16229318, 0.14182984, 0.11926506, 0.09650319, 0.07513938, 0.05630377, 0.04061616,
    0.028237, 0.01898308, 0.0124707, 0.00825483, 0.00594395, 0.00528188, 0.00619565, 0.00881147, 0.01343945, 0.02052489,
    0.03056282, 0.04397646, 0.06096846, 0.08136729, 0.10450294, 0.12915212, 0.15358768, 0.17574751, 0.19350787, 0.20501441,
    0.20900001, 0.20501439, 0.19350782, 0.17574735, 0.15358725, 0.12915097, 0.1045, 0.08136001, 0.06095114, 0.04393684,
    0.03047557, 0.02034, 0.0130625, 0.00807194, 0.0047996, 0.00274605, 0.00151178, 0.00080084, 0.0004082, 0.00020021,
    9.45E-05, 4.29E-05, 1.87E-05, 7.88E-06, 3.19E-06, 1.24E-06, 4.65E-07, 1.68E-07, 5.81E-08, 1.94E-08,
    6.23E-09
])

# 归一化
intensities_norm = (intensities - intensities.min()) / (intensities.max() - intensities.min())

for wl, inten_norm in zip(wavelengths, intensities_norm):
    print(f"{wl}\t{inten_norm:.6f}")
